package com.undsf.despot.templates;

import com.undsf.despot.modles.Buff;
import com.undsf.despot.modles.Identify;

/**
 * Created by Arathi on 2016/10/4.
 */
public class BuffTemplateBase {
    public String id;
    public String name;
    public String description;
    public Integer default_time;
    public String key;
    protected String effective_description;
    protected String cease_description;

    public Buff create() {
        Buff buff = new Buff(name, default_time);
        buff.setId(new Identify(id));
        buff.setDescription(description);
        buff.setKey(key);
        buff.setEffectiveDescription(effective_description);
        buff.setCeaseDescription(cease_description);
        return buff;
    }

    @Override
    public String toString() {
        return id+" "+name;
    }
}
